package com.shangguan.spring.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.support.SessionStatus;

/**
 * @ClassName: DispatcherController
 * @Description:
 * @Author: 一尘
 * @Date: 2020 年 05 月 20 9:26
 * @Version 1.0
 */

@Api(description = "页面跳转的总接口")
@Controller
public class DispatcherController {
    @ApiOperation(tags = "页面登出",httpMethod = "GET",value = "页面登出接口")
     //登出
    @GetMapping("/logout")
    public  String logout(SessionStatus sessionStatus){
                 //session清除
                 sessionStatus.isComplete();
                 return "login";
    }


}
